# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=py3-ytmusicapi
_pyname=ytmusicapi
pkgver=0.22.0
pkgrel=0
pkgdesc="Unofficial API for YouTube Music"
url="https://github.com/sigma67/ytmusicapi"
arch="noarch"
license="MIT"
depends="py3-setuptools py3-requests"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/ytmusicapi-$pkgver"
options="!check" # tests require special auth setup

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
5ef493b2ad4d95ade146451d7699f4f4b83a5433c2bf64e5a409e0a5e5eac491657d5be34ca64b50f2bced0519a2b9876589ba3521403a5f7bac1db0b3993b85  ytmusicapi-0.22.0.tar.gz
"
